package com.stary.beetlsql.generator.config.rules;

/**
 * <p>DB驱动枚举</p>
 * @author stary {@link stary1993@qq.com}
 * @since 2019-7-24
 */
public enum DBDriverName {
	/**
	 * mysql 
	 */
	MYSQL("mysql", "com.mysql.jdbc.Driver"),
	/**
	 * oracle 
	 */
	ORACLE("oracle", "oracle.jdbc.OracleDriver"),
	/**
	 * sqlserver 2005 以上的版本 不包含2005
	 */
	SQL_SERVER("sql_server", "com.microsoft.sqlserver.jdbc.SQLServerDriver"),
	/**
	 * db2
	 */
	DB2("db2", "com.ibm.db2.jcc.DB2Driver"),
	/**
	 * h2
	 */
	H2("h2", "org.h2.Driver");
	/**
	 * 数据库类型
	 */
	private final String dbType;  
	/**
	 * 数据库驱动名
	 */
    private final String name;
    
	private DBDriverName(final String dbType,final String name) {
		this.dbType = dbType;
		this.name = name;
	}

	public String getDbType() {
		return dbType;
	}

	public String getName() {
		return name;
	}
	
}
